package com.yan.blog.mapper;


import com.yan.blog.bean.Content;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 文章内容
 */
@Mapper
public interface ContentMapper {

    Content get(Long cid);

    List<Content> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(Content content);

    int update(Content content);

    int remove(Long cid);

    int batchRemove(Long[] cids);
}
